{extend name="base/base"}
{block name="title"}首页{/block}
{block name="body"}
<div class="home-page ">
	<div class="ban">
		<ul class="bd">
			<li style="background:url(/theme/images/ban_1.jpg) center no-repeat;"></li>
			<li style="background:url(/theme/images/ban_2.jpg) center no-repeat;"></li>
			<li style="background:url(/theme/images/ban_3.jpg) center no-repeat;"></li>
			<li style="background:url(/theme/images/ban_4.jpg) center no-repeat;"></li>
		</ul>
		<ul class="hd">
			<li></li>
			<li></li>
			<li></li>
			<li></li>
		</ul>
	</div>
	<div class="main">
		<div class="app clearfix">
			<div class="app-left">
				<h2>联系我们</h2>
				<div class="app-pc"></div>
				<p>
					商务合作请拨打热线：<span>400-8166-477</span>
				</p>
			</div>
			<div class="app-right">
				<h2>测试ajax</h2>
				<ul>
					<li>
						<a class="ios-download" href="javascript:;"  >接口查看</a>
					</li>
					<li style="margin-top:20px">
						<a class="android-download" href="javascript:;">接口查看</a>
					</li>
				</ul>
				<img src="/theme/images/download-app.jpg" alt="下载链接二维码" />
				<p>
					下载手机客户端<span>立即体验手机取号</span>
				</p>
			</div>
		</div>
	</div>
</div>
<script>
	$('.ios-download').on('click', function () {
		$.ajax({
			url:"{:Url('/api/Member')}",
			success:function(result){
				console.log(result);
				console.log('状态码：'+status)
			},
			error:function (xhr) {
				// 获取拿到的数据
				let data = xhr.responseJSON;
				console.log(data);
				// 状态码
				let code = xhr.status
				console.log(code);
				console.log(typeof code);
			}
		});
	});
</script>
{/block}